package org.me.marble;

import java.nio.*;

/**
*
* @author tungi
*/

public class Texture{
    private ByteBuffer _dataBuffer;
    private int _name;//glgenerated id
    private int _type;
    private int _width;
    private int _height;

    public Texture(int _name,int type,int _width,int _height,ByteBuffer _data){
        this._dataBuffer=_data;
        this._name=_name;
        this._type=type;
        this._width=_width;
        this._height=_height;
    }

    public void setName(int _name){
        this._name=_name;
    }

    public void setType(int _type){
        this._type=_type;
    }

    public void setWidth(int _width){
        this._width=_width;
    }

    public void setHeight(int _height){
        this._height=_height;
    }

    public void setData(ByteBuffer _data){
        _dataBuffer=_data;
    }

    public int getName(){
        return _name;
    }

    public int getType(){
        return _type;
    }

    public int getWidth(){
        return _width;
    }

    public int getHeight(){
        return _height;
    }

    public ByteBuffer getData(){
        return _dataBuffer;
    }
}
